package com.gitee.minimalismstyle.fresh.flowable.api.feign.fallback

import com.gitee.minimalismstyle.fresh.common.core.domain.R
import com.gitee.minimalismstyle.fresh.flowable.api.feign.DatabasetablesApi
import com.gitee.minimalismstyle.fresh.flowable.api.feign.model.DataResponse
import com.gitee.minimalismstyle.fresh.flowable.api.feign.model.TableMetaData
import com.gitee.minimalismstyle.fresh.flowable.api.feign.model.TableResponse

class DatabasetablesApiFallback: DatabasetablesApi {
    override fun listTables(): R<Any> {
        return R.error("服务无法访问")
    }

    override fun getTable(tableName: String): R<TableResponse> {
        return R.error("服务无法访问")
    }

    override fun getTableMetaData(tableName: String): R<TableMetaData> {
        return R.error("服务无法访问")
    }

    override fun getTableData(tableName: String, start: Int?, size: Int?, orderAscendingColumn: String?, orderDescendingColumn: String?): R<DataResponse<Map<String, Any>>> {
        return R.error("服务无法访问")
    }
}